<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <?php include "../controller/report_week.php" ;?>
    <?php include 'modules/head.php'; ?>
    <?php include '../asset/report_week.css?version=20230924'; ?>
</head>

<body id="top">

<?php include 'modules/header.php'; ?>




<div class="mui-content report_week">
    <h4>周报</h4>
    <div class="report-list">

    <ul class="mui-table-view">
        <li class="mui-table-view-cell">周报时间：<?echo $date_start?> ~ <?echo $date_end?> </li>
        <li class="mui-table-view-cell">
            <div class="cell-item">新增用户<h2> <?echo count($member)?> </h2></div>
            <div class="cell-item">新增询盘<h2> <?echo count($message)?> </h2></div>
        </li>
    </ul>
    </div>


    <h4>本月累计</h4>
    <div class="report-list">

    <ul class="mui-table-view">
        <li class="mui-table-view-cell">
        <div class="cell-item">新增用户<h2> <?echo count($member_month)?> </h2></div>
        <div class="cell-item">新增询盘<h2> <?echo count($message_month)?> </h2></div>
        </li>

    </ul>
    </div>


        <h4>跟进客户</h4>
        <div class="checkpoint-list">

            <ul class="mui-table-view">
                <li class="mui-table-view-cell">
                <div class="cell-item">逾期跟进客户<h2 style="color: red"> <?echo count($member_overtime)?> </h2></div>
                <div class="cell-item">跟进中客户 <h2 > <?echo  $member_num ?> </h2></div>
                <div class="cell-item">未分配客户 <h2 > <?echo  $member_unarrange ?> </h2></div>
                </li>
            </ul>


        <ul class="mui-table-view checkpoint-list">
            <li class="title"> <span class="name">&nbsp</span> <span class="data">跟进逾期</span> <span class="data">跟进中</span></li>

            <?foreach ($employee_static as $k=>$v){
                if($k<5){?>
            <li class="mui-table-view-cell">
                <span class="data name"><b><?echo $v['name'] ?> ：</b></span>
                <span class="data overtime"> <?echo $v['overtime']?></span>
                <span class="data"> <?echo $v['sum']?></span>
            </li>
                    <?;}
            }?>

        </ul>
    </div>






    <h4>客户评级</h4>
    <div class="report-list rank-list">
        <ul class="mui-table-view">

            <?foreach ($rank_list as $k=>$v){
            if($k<5){?>
            <li class="mui-table-view-cell">
                <span class="els1"><b><?echo $v?></b> </span> ：
                <span class="data">
                    <b><?echo count_by_item($table_prefix."member","rank like '%$v%' ")?></b>
                    (<?echo 100*substr(count_by_item($table_prefix."member","rank like '%$v%' ")/$member_num,0,5)?>% )
                </span>
            </li>
            <?;};
            }?>

            <li class="mui-table-view-cell">

            <tr>
                    <span><b>未评级</b> </span>：
                    <span class="data">
                        <b><?echo count_by_item($table_prefix."member","")?></b>
                        (<?echo 100*substr(count_by_item($table_prefix."member","rank = '' or rank is null ")/$member_num,0,5)?>% )
                    </span>

                </tr>
            </li>


        </ul>
    </div>

    <br/>
    <br/>
    <br/>

</div>


<script src="/application/mui/js/mui.min.js"></script>


</body>
</html>
